//
//  UIColor+XCAdditions.h
//
//  Created by Jiaozl on 14-5-2.
//  Copyright (c) 2014年 Jiaozl. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIColor (Additions)

+ (UIColor*)colorWithHexString:(NSString *)hexColorString;

+ (UIColor*)colorWithHexString:(NSString *)hexColorString alphaString:(NSString *)alphaString;

+ (UIColor*)colorWithHex:(NSInteger)hexValue;

+ (UIColor*)colorWithHex:(NSInteger)hexValue alpha:(CGFloat)alphaValue;

+ (UIColor*)colorWithRGBString:(NSString *)rgbaString;

@end


#define COLOR(r,g,b)                                [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1]
#define COLOR_ALPHA(r,g,b,a)                        [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:(a)]
